﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lib.dmt.teltonika.server.Parsers
{
    public record TeltonikaRawByteRecord
    {
        public string IMEI { get; private set; } = string.Empty;
        public DateTime ReceivedTime { get; private set; } = DateTime.Now;
        public byte[] Data { get; private set; } = new byte[4096];

        public TeltonikaRawByteRecord(string imei, byte[] data)
        { 
            this.IMEI = imei;
            this.ReceivedTime = DateTime.Now;
            this.Data = new byte[data.Length];
            Array.Copy(data, this.Data, data.Length);
        }
    }
}
